# -*- coding: utf-8 -*-#
#-------------------------------------------------------------------------------
# 建立者:        潘炎珍  
# Name:         demo08
# Description:
# Author:       98745
# Date:         2019/3/3
#-------------------------------------------------------------------------------

def f1():
    try:
        print('f1正常执行')
    finally:
        print('f1,finally')
def f2():
    try:
        raise Exception
    except:
        print('f2 抛出异常')
    finally:
        print('f2 finally')
def f3():
    try:
        return 20
    finally:
        print('f3 finally')
def f4():
    try:
        x=1/0
    except ZeroDivisionError as e:
        print(e)
    finally:
        print('f4 finally')
        try:
            del x
        except ZeroDivisionError as e:
            print(e)
f1()
f2()
print(f3())
f4()